package cn.zqh.minio.service;

import cn.zqh.bean.api.CommonResult;
import cn.zqh.bean.bo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqh
 * @since 2023-02-21
 */
public interface CommentService extends IService<Comment> {
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 添加一条商品评论
    */
    CommonResult creaetACommodityComment(String commodityId, String message);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 给店铺添加评论
    */
    CommonResult createAStoreComment(String storeId, String message);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 通过id删除某条评论
    */
    CommonResult delCommentById(String commentId);
     
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 查询某个店铺的评论
    */
    CommonResult getCommentsBySorcid(Integer style,String sorcid, Integer page, Integer size);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 查询某个商品评论的数量
    */
    CommonResult getAllCommentNumById(String commodityId);
}
